package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.ArrayList;

/**
 * Created by thoughtworker on 1/21/14.
 */
public class BibliotecaAppMain {

    public static void main(String[] args) {
        ArrayList<Book> bookList = new ArrayList<Book>();
        bookList.add(new Book("Gulliver's Travels"));
        bookList.add(new Book("The Hobbit"));
        bookList.add(new Book("Call of the Wild"));

        PrintStream printStream = System.out;

        Library library = new Library(bookList, printStream);

        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));

        LibraryManager manager = new LibraryManager(library, printStream, bufferedReader);

        new BibliotecaApp(System.out, manager).runApp();
    }

}
